import service from '@/utils/request'

/** 
 *  登录日志列表
 *  username string `form:"username" binding:"max=50"`
 *  address  string `form:"address" binding:"max=30"`
 *  status   string `form:"status" binding:"max=1"`
    PageOrderParam 参数包括：page、limit、order、asc
 */
export const getLogLoginPage = (params) => {
  return service({
    url: '/api/sys/log_login_page',
    method: 'get',
    params: params
  })
}

/**
 *  操作日志列表
 *  realName string `json:"realName" form:"realName" binding:"max=50"`
 *  reqUri   string `json:"reqUri" form:"reqUri" binding:"max=100"`
    PageOrderParam 参数包括：page、limit、order、asc
 */
export const getLogOperatePage = (params) => {
  return service({
    url: '/api/sys/operate_log_page',
    method: 'get',
    params: params
  })
}